const state = () => ({
  title: '' // 页面标题
})

// getters
const getters = {
  getTitle: state => {
    return state.title
  }
}

// actions
const actions = {}

// mutations
const mutations = {
  setTitle(state, title) {
    state.title = title
  }
}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}
